// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(4,2) == 0;
	question = "special";
	text1 = "You enter a large, beautifully equipped workshop. It contains pretty much every tool and piece of equipment a blacksmith or Shaper could want to work iron and steel.";
	text2 = "The most spectacular feature of the workshop is the anvil. It is huge, dominating the center of the workspace. It is ringed with rows of carefully inscribed runes. It also glows.";
	text3 = "With the right material and training, a forge like this could be used to make remarkable equipment.";
	text4 = "(Click on the forge to use it. You can find recipes and materials in your travels. You can use a forge like this to craft new and better items.)";
	action = SET_SDF 4 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(4,3) == 0 && gf(4,4) == 0;
	question = "special";
	text1 = "You enter the Testing Halls. You aren't sure what they are for. Quite likely testing young Shapers, but you aren't sure. It's definitely too impressive a structure to have been built just for creations.";
	text2 = "There are several serviles walking around. Some are sweeping up. Some are carrying around supplies and cooked meals. They don't seem to notice you. They just walk right by you.";
	text3 = "You look at Mehken, but she seems as confused as you are. _Never been here. No creations to care for here. Shaper business only._";
	action = SET_SDF 4 3 1;
	code = 
		if (char_in_party(47) < 0)
			rs(3);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(4,11) == 0;
	question = "special";
	text1 = "You step into the Testing Hall, the ordeal young Shapers must pass through to prove themselves. Perhaps there is a reward at the end. And perhaps you are about to subject yourself to a great risk for nothing.";
	text2 = "The door does not close and lock behind you. Not right away, anyway.";
	text3 = "Mehken looks around nervously. _Have wondered about secret ways of Shapers. How they train the young. Did not think I would see first hand. Not sure I am happy about it._";
	action = SET_SDF 4 11 1;
	code = 
		if (char_in_party(47) < 0)
			rs(3);
	break;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(4,9) == 0;
	question = "special";
	text1 = "There is a dead body here. He was a young man, and he wears the robes of a Shaper. The roamers must have caught him and dragged him back here.";
	action = SET_SDF 4 9 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(4,1) == 0;
	question = "special";
	text1 = "You emerge from the far end of the Testing Halls. You are victorious. The test for young prospective Shapers was no match for you.";
	text2 = "And yet, it is somewhat anticlimactic. Nobody greets you. There are no fireworks. You don't feel any different. The servant mind who let you in was confused and confusing. The end of the trial is no more clear.";
	text3 = "The only sign of anything different here is that there is a control panel in the corridor ahead.";
	action = SET_SDF 4 1 1;



begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  Memorial To All Prospectives Recently Lost In the Trial";
	text3 = "  We Regret the Loss of Your Talents to the Shaper Cause";

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  FORGE STATION";
	text3 = "  See Master Phipps to schedule use.";

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are two roamers standing guard outside this workshop. They snarl at you when you approach, but they don't attack.";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  TESTING HALLS";	

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The serviles are here to cook meals, keep things clean, and do typically menial tasks. They are not very intelligent.";
	text2 = "You try to get a servile's attention, but the creation just breezes right by you. You suspect that they are instructed to avoid visitors whenever possible.";


begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You reverently touch the leather cover of this thick tome. It is a Shaper textbook, a compendium of their secret knowledge. You open it up and begin to read.";
	text2 = "Your eyes pass over the words and diagrams within. You don't feel like you are reading them. Instead, they are serving as a reminder. They reawaken things you had forgotten that you knew, abilities that were once automatic.";
	text3 = "When you are done perusing these secrets, your knowledge of Shaping has increased. You now know more about creating fyoras and clawbugs.";
	text4 = "You skim through the book again. It is interesting but not informative. You already know everything it has to teach.";
	code =
		if (gf(4,13) == 0) {
			rs(4);
			sf(4,13,1);
			alter_stat(80,1);
			alter_stat(86,1);
			}
			else {
				rs(2); rs(3);
				}
	break;	

begintalknode 17;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You reverently touch the leather cover of this thick tome. It is a Shaper textbook, a compendium of their secret knowledge. You open it up and begin to read.";
	text2 = "Your eyes pass over the words and diagrams within. You don't feel like you are reading them. Instead, they are serving as a reminder. They reawaken things you had forgotten that you knew, abilities that were once automatic.";
	text3 = "When you are done perusing these secrets, your knowledge of the Healing crafts has increased. You now know more about the spells Cure Affliction, Essence Infusion, and Heal.";
	text4 = "You skim through the book again. It is interesting but not informative. You already know everything it has to teach.";
	code =
		if (gf(4,15) == 0) {
			rs(4);
			sf(4,15,1);
			alter_stat(71,1);
			alter_stat(72,1);
			alter_stat(73,1);
			}
			else {
				rs(2); rs(3);
				}
	break;	

begintalknode 18;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You reverently touch the leather cover of this thick tome. It is a Shaper textbook, a compendium of their secret knowledge. You open it up and begin to read.";
	text2 = "Your eyes pass over the words and diagrams within. You don't feel like you are reading them. Instead, they are serving as a reminder. They reawaken things you had forgotten that you knew, abilities that were once automatic.";
	text3 = "When you are done perusing these secrets, your knowledge of battle magic has increased. You now know more about the spells Searer and Speed.";
	text4 = "You skim through the book again. It is interesting but not informative. You already know everything it has to teach.";
	code =
		if (gf(4,16) == 0) {
			rs(4);
			sf(4,16,1);
			alter_stat(42,1);
			alter_stat(63,1);
			}
			else {
				rs(2); rs(3);
				}
	break;	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Master Phipps";
	text1 = "This aging man lives a life of almost hermitlike solitude out here in the icy mountains. He wears tattered, grimy robes. They are so old and faded that you can't tell if they bear the Shaper symbol or not.";
	text2 = "Though he is clearly accustomed to being alone, he seems pleased to see you. _Ahhhh. A visitor, at last. I was concerned. I am Master Phipps, honored keeper of the forge. I protect the forge, but it does nobody any good when it is dormant._";
	text3 = "He waves at the blades surrounding the workshop. _I make blades to serve in the war against the foul rebels. Shaper or not, I will be pleased to help you in the battle._";
	text5 = "Master Phipps walks from one rack of equipment to another, reverently touching the blades and armor. _Soon, all these blades, products of my mighty forge, will go out and be used against the rebels._";
	text6 = "He looks over at you. _Do you wish for something?_";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "You hate the rebels?";
	text1 = "He seems surprised to hear this question from a servile. _Your kind doesn't usually speak with me. But I will talk to you. I have no problem with serviles, even if so many of them are rebels._";
	text2 = "_I am an old man. I spent many years living in peace in a Shaper world. Raised a family. Did my work. I didn't value the calm enough. None of us did._";
	text3 = "_Then the war came._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(1);
	break;
	
begintalknode 32;
	state = 30;
	nextstate = 32;
	condition = 1;
	question = "Can I trade with you?";
	text1 = "_That is why I am here. I buy materials that can be melted down and worked into new weapons and armor. I sell the things I craft to gain money to buy new materials. I send my blades out into the world to do their work._";
	text2 = "_What do you need?_";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = gf(4,5) == 0;
	question = "Tell me about the forge.";
	text1 = "Master Phipps looks uncomfortable. _The forge is a rare and powerful artifact. It is in my care. I want it to be used, but I have to be careful about who I let use it. I have to be sure it is used to help in the war._";
	text2 = "_I have also never let a servile use it. I am not sure Shaper Rawal would approve._";
	text3 = "You show Master Phipps your papers of transit, signed by Rawal. He looks relieved. _You fight for a Shaper? Then I would not question you. I would be happy to let you use the forge._";
	text4 = "It takes some talking, but you are able to convince Master Phipps that you are working directly for Shaper Rawal. _I suppose that I will have to believe you. Better that than to let one of Rawal's servants go without aid._";
	text5 = "You try to convince him that you are working for Shaper Rawal, but you aren't convincing enough. He shakes his head. _I can't risk damage to the forge. I am sorry._";
	text6 = "He unlocks the large pair of doors in the east wall.";
	code =
		clear_strings();
		as(1);
		if (creature_type(pc_num()) == 46) 
			as(2);
		if (has_spec_item(1)) {
			as(3); as(6);
			sf(4,5,1);
			sf(4,24,1);
			}
			else if (get_stat(20) >= 5) {
				as(4); as(6);
				sf(4,5,1);
				sf(4,24,1);
				award_party_xp(100,3);
				}
				else as(5);
	break;
		
begintalknode 34;
	state = 31;
	nextstate = 30;
	condition = 1;
	question = "And what happened?";
	text1 = "He looks away from you for a long moment, lost in recollection. He seems to be about to speak. Then he shakes his head.";
	text2 = "_I don't want to talk about it. I live alone. I do my work. I make my crafts. I train others in the use of the forge. That is all. What do you wish from me?_";

begintalknode 35;
	state = 32;
	nextstate = -1;
	condition = has_spec_item(1) > 0;
	question = "I'd like to buy something.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Master Phipps",
		  "You show Master Phipps your papers of transit. Once he knows that you are going south, he shows you his wares.",
		  10,4,0);	
	break;

begintalknode 36;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "I'd like to sell something.";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;

begintalknode 37;
	state = 32;
	nextstate = -1;
	condition = has_spec_item(1) == 0;
	question = "I'd like to buy something.";
	text1 = "Master Phipps hesitates. _I only sell my blades to those who are going south to join the war. Can you prove that you are leaving these mountains?_";
	text2 = "Alas, you can't. _If Master Rawal ever lets you leave, I would be happy to help you._";

begintalknode 38;
	state = 32;
	nextstate = 30;
	condition = 1;
	question = "I want to discuss something else.";
	text1 = "_Of course. What do you want to know?_";

begintalknode 39;
	state = 30;
	nextstate = 33;
	condition = gf(4,5) > 0;
	question = "How does the forge work?";
	text1 = "_It is like any other forge, but blessed. Filled with essence. Charged with magical energy. All held together with lines of enchanted runes._";
	text2 = "_For a warrior like yourself, there are two uses for the forge. If you find a stone or item with blessing magic, you can use the forge to transfer that magic into one of your weapons or pieces of armor._";
	text3 = "_Second, if you learn the right technique, you can combine the proper components into new and powerful items._";
	text4 = "_Of course, these techniques are rare and closely guarded by craftsfolk._";

begintalknode 40;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "But what exactly does it do?";
	text1 = "_I do not pretend to fully comprehend the arts of the Shaper artificers. I do know that when something with innate magical power is placed upon it, the energy is held in place. Stabilized._";
	text2 = "_It can then be forced into other items. Like blades. Or armor._";

begintalknode 41;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Where can blessing stones be found?";
	text1 = "_Many places. Some of them are made. Some form spontaneously in areas of great natural enchantment._";
	text2 = "He smiles and removes a small stone from his pocket. He hands it to you. _I am always willing to aid a servant of Rawal. Smash that stone into one of your blades or pieces of armor on the anvil, and it will be blessed._";
	text3 = "(There are a wide variety of augmentation stones. You can combine one of them with a weapon or piece of armor on the anvil to try to improve it. Each weapon or piece of armor can only be improved with a stone once.)";
	code =
		if (gf(4,7) == 0) {
			sf(4,7,1);
			reward_give(385);
			}
			else rs(2);
	break;

begintalknode 42;
	state = 33;
	nextstate = 34;
	condition = gf(4,6) < 2;
	question = "Can you teach me how to make something?";
	text1 = "Master Phipps winces. _I am always eager to help the servants of Shaper Rawal, but ... to give my - my secrets ..._ He sighs.";
	text2 = "_I will tell you a technique. Just one. And I need payment for it. Not fair payment, just some payment._";
	text3 = "_I use a lot of herbs in my work. This makes my life difficult. In particular, up in these mountains, I can never get enough saltweed or wiry moss._";
	text4 = "_Bring me some of each and I will teach you a very valuable technique._";
	code = 
		set_flag(4,6,1);
		toggle_quest(38,1);
	break;	
	
begintalknode 43;
	state = 34;
	nextstate = -1;
	condition = 1;
	question = "Where can they be found?";
	text1 = "_Oh, many places to the south. Swamps are excellent sources of raw herbs, for example._";

begintalknode 44;
	state = 33;
	nextstate = -1;
	condition = gf(4,6) > 1;
	question = "Teach me a new crafting technique.";
	text1 = "_All right. This one is not terribly rare or hard to learn, but it is very valuable. If you combine demon's bile and mandrake tincture over a blessed anvil, you can create a powerful elixir._";
	text2 = "_Pour this elixir, again over a blessed anvil, on the right sort of blade or piece of armor, and you will remove the impurities from the metal. It will be greatly improved._";
	text3 = "_I have heard that such a purified blade or garment can then be treated with other substances, elevating it into an artifact of great power. Sadly, I do not know more than this._";
	
begintalknode 45;
	state = 30;
	nextstate = -1;
	condition = gf(4,6) == 1 && has_item(290) && has_item(291);
	question = "I have saltweed and wiry moss for you. (Give them.)";
	text1 = "He takes the herbs and smells them. _Not ideal, but they will do. Next time you speak with me of the anvil, I will share a secret with you._";
	code = 
		set_flag(4,6,2);
		toggle_quest(38,3);
		award_party_xp(200,15);
		take_item(290);
		take_item(291);
	break;	
	
begintalknode 46;
	state = 30;
	nextstate = -1;
	condition = has_spec_item(11);
	question = "I have an irritating crystal for you. Please take it.";
	text1 = "Master Phipps takes the crystal and holds it up to his ear. _Ahhhh ... yes. So soothing. I am grateful for the help. I was starting to think that I was cut off from the rest of the Foundry._";
	text2 = "_I suppose I should give you a tip._ He takes a crystal from a pouch and hands it to you. _If you ever are near a blessed anvil, that stone will have a beneficial effect on a blade or piece of armor._";
	code = 
		set_spec_item(11,-1);
		toggle_quest(35,3);
		award_party_xp(200,2);
		reward_give(386);
		sf(3,16,2);
	break;	

	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Trial Mind";
	text1 = "This servant mind is not doing well. Its eyes don't focus. It twitches and rolls around in its stone tray. It's drooling a little.";
	text2 = "When you get close to it, it looks vaguely in your direction. _Hhhhrrrr ... I am Trial Mind. Let prospectives ... hhhhrrrrhhh ... trial._";
	text3 = "_Function poor. Weak. ... Ghhhhuurrrr ... Require aid._";
	text5 = "The Trial Mind lolls in its tray. It occasionally makes a long, incoherent noise.";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "Can I help you?";
	text1 = "_Subjected ... hrrrruugghh ... assault. Outside influence. Attempt to control. Resisted. Endured damage._";
	text2 = "_Need Shaper ... ghhahhhh ... attention. Reworking. Or destruction._";

	
begintalknode 52;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "(Examine the mind closely.)";
	text1 = "When you try to touch the mind, it twitches. A bolt of blue energy flies out, burning your hand. You jump back.";
	text2 = "_Ghhhaahhhh ... Shapers. Need Shaper assistance. No outsider interfering._";
	
begintalknode 53;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Is there anything I can do?";
	text1 = "The servant mind stops twitching for a few seconds. It closes its eyes. Then it says, _You cannot ... cannot repair._ The twitching and hideous noises resume.";
	
begintalknode 54;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "The Presence attacked you?";
	text1 = "_Outside force. Tried to take control. Resisted. Hssssss. It hurt me._";
	text2 = "It isn't aware that the Presence has been destroyed. The intruder is gone, but the damage done remains.";
	code =
		if (gf(2,3) < 3)
			rs(2);
	break;
	
begintalknode 55;
	state = 51;
	nextstate = 50;
	condition = 1;
	question = "I'd like to know something else.";
	text1 = "It doesn't respond. It just quivers.";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = 52;
	condition = 1;
	question = "Is there anyone here besides you?";
	text1 = "_One ... One prospective in trial. None others. ... Arrrrghhh! ... None come for some time._";
	
begintalknode 57;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "What is a prospective?";
	text1 = "_Young ... young Shaper initiate. Testing. To be brought in sect. Must endure. I send in._";
	
begintalknode 58;
	state = 52;
	nextstate = -1;
	condition = gf(4,9) > 0;
	question = "I found that prospective. He died.";
	text1 = "The mind simply says, _Noted._";

begintalknode 59;
	state = 50;
	nextstate = 53;
	condition = gf(4,1) == 0;
	question = "Tell me about the test.";
	text1 = "_Young Shapers ... Tested. Come to me. I send in. Death means entry into sect. Victory means honored burial. ... No. Is backward._";
	text2 = "_Hurt. Confused._";

begintalknode 60;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Can anyone take the test?";
	text1 = "_Only ... only trained Shaper prospectives. Like ..._ It concentrates and looks at you closely. Something it sees seems to confuse it even more.";

begintalknode 61;
	state = 53;
	nextstate = 54;
	condition = 1;
	question = "I would like to take the test.";
	text1 = "_You ... You ..._ It stares at you. _Unclear. Damaged. Not sure. You ... You are ..._";
	text2 = "You hear a click from the door to the east. _Enter. You may enter. Pass through. If you are not allowed, Shapers will judge ..._";
	code =
		sf(4,10,1);
	break;
	
begintalknode 62;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "That is all I want to know.";
	text1 = "_I wait. Hhhurrrrhh. Wait here for help. Go._";
	action = END_TALK;

begintalknode 63;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "You are letting me into the test?";
	text1 = "_You seem ... You seem like a Shaper. Young Shaper. Can't tell. Damaged. I ... Gahhhh! ... Better to be safe. Better to not turn prospective away. I am damaged. Not sure._";

begintalknode 64;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "Anything else I should know?";
	text1 = "_Are many paths in the trial. Some to fight. Some to think. Pass through. Live. Be rewarded. That is all._";
	text2 = "You start to ask something else, but it doesn't seem to be paying attention.";
	action = END_TALK;


begintalknode 65;
	state = 50;
	nextstate = -1;
	condition = gf(4,1) > 0;
	question = "I have been through the test.";
	text1 = "_Then you ... you ... You are now what you are. I do not know what you are. You had victory. That is all._";
	text2 = "You start to ask something else, but it doesn't seem to be paying attention.";
	action = END_TALK;
	
	//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = char_ok(52) && get_attitude(52) < 10;
	question = "Name";
	text1 = "The path ahead is blocked by an enormous thahd. It is a bizarre design. Its chest muscles are huge, so much so that it constantly looks like it's about to tip over. Long, nasty bone spurs emerge from its forearms.";
	text2 = "When it sees you, it lets out a long snarl. Then it, slowly and haltingly, begins to talk.";
	text3 = "_You are student. You choose good. You fight me, killed by me! I give quick, clean death, not like lesser, useless copy of me in next room._";
	code =
		set_attitude(52,11);
	break;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "There is a copy of you?";
	text1 = "_Lesser copy! Broken copy! My line used to defend this trial! Mighty thahd!_ It holds up its forearms, showing off the nasty bone spurs. _Is our duty. I do better than all._";
	text2 = "";

begintalknode 72;
	state = 70;
	nextstate = 71;
	condition = get_stat(20) >= 5;
	question = "Lesser copy? That's not what it said. (Lie.)";
	text1 = "The creature is strong. It's also gullible. _Wha ... What? You talk to other thahd? What it say?_";

begintalknode 73;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "I don't want to fight you.";
	text1 = "_You afraid? Afraid of mighty defender thahd? Too late! You come into trial. You fight me now! I show other thahd who best at cutting down unworthy young Shapers._";

begintalknode 74;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Prepare to die. (Attack.)";
	text1 = "The thahd snarls and rushes to meet you.";
	action = END_TALK;

begintalknode 75;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "It said that you are mightier. I should go face you.";
	text1 = "The thahd nods. _Yes. Lesser thahd knows its place. You come to me. I do duty. I give good, quick, clean death._";
	text2 = "_You chose well. Stay still. This will not hurt._ The thahd advances on you.";
	action = END_TALK;

begintalknode 76;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "It didn't say much. Just how weak you are.";
	text1 = "_What? It dare? Lesser copy? But it was so weak it let you go?_";

begintalknode 77;
	state = 72;
	nextstate = -1;
	condition = gf(4,12) == 0;
	question = "No. I'm still going to fight it. It just said I should come over and see you for a good laugh.";
	text1 = "The thahd roars in fury. _I will teach it. It will not insult me! I will beat it into being polite!_ It thinks for a moment. _Stay here. I am back very soon._";
	text2 = "The thahd runs out of the room.";
	action = END_TALK;
	code =
		sf(4,12,1);
		award_party_xp(100,5);
	break;

begintalknode 78;
	state = 72;
	nextstate = -1;
	condition = gf(4,12) > 0;
	question = "It said I should come over and see you for a good laugh.";
	text1 = "The thahd roars in fury. _No! You try trick me again. No trick. I show you not to try to fool me!_";
	action = END_TALK;	

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = gf(4,8) == 0 && has_spec_item(11) && char_ok(8) && char_ok(9);
	question = "Name";
	text1 = "As you get close to the roamers standing guard here, they let out long, irritated snarls. The humming sound from the crystal in your pouch is annoying them.";
	action = SET_SDF 4 8 1;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = get_stat(20) >= 4;
	question = "Try to calm them.";
	text1 = "You try to muffle the crystal under your cloak and make reassuring noises to the roamers. You calm them down just enough to slip safely by.";
	action = END_TALK;
	code =
		award_party_xp(100,4);
	break;
	
begintalknode 92;
	state = 90;
	nextstate = -1;
	condition = get_stat(20) < 4;
	question = "Try to calm them.";
	text1 = "You try to muffle the crystal under your cloak and make reassuring noises to the roamers. You aren't able to reassure them.";
	text2 = "Recent events have already left them unstable. The humming sound is at exactly the correct frequency to unhinge them for good.";
	action = END_TALK;
	code =
		set_attitude(8,10);
		set_attitude(9,10);
	break;
	
begintalknode 93;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Ignore them.";
	text1 = "You have an easy time ignoring them. They, alas, can't ignore you. Recent events have already left them unstable. The humming sound is at exactly the correct frequency to unhinge them for good.";
	action = END_TALK;
	code =
		set_attitude(8,10);
		set_attitude(9,10);
	break;
	
begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "The control panel seems to be here to dispense rewards to the victorious young Shapers. Enough of them must normally come through here that there is a need to make the process automatic.";
	text2 = "There are three buttons. The first is labeled, _Shaping Arts._";
	text3 = "The second says, _Healing Arts._";
	text4 = "The third says, _Battle Magic._";
	text5 = "You poke at the buttons, but none of them move anymore. You made your decision.";
	code =
		if (gf(4,14) == 0)
			rs(5);
	break;
	
begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = gf(4,14) == 0;
	question = "Press the first button.";
	text1 = "You push the button. It pops back out. You hear a click from a nearby door.";
	action = END_TALK;
	code =
		sf(4,14,1);
		sf(4,18,1);
	break;
	
begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = gf(4,14) == 0;
	question = "Press the second button.";
	text1 = "You push the button. It pops back out. You hear a click from a nearby door.";
	action = END_TALK;
	code =
		sf(4,14,1);
		sf(4,19,1);
	break;

begintalknode 113;
	state = 110;
	nextstate = -1;
	condition = gf(4,14) == 0;
	question = "Press the third button.";
	text1 = "You push the button. It pops back out. You hear a click from a nearby door.";
	action = END_TALK;
	code =
		sf(4,14,1);
		sf(4,20,1);
	break;
	
begintalknode 114;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "Leave the controls alone.";
	text1 = "You stop tinkering with the controls.";
	action = END_TALK;
	
	